package com.shen.web.intercepter;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

public class MyIntercepter3 extends AbstractInterceptor {
	
	private static final long serialVersionUID = 6520233495033620761L;
	
	private static Logger logger = LoggerFactory.getLogger(MyIntercepter3.class);

	@Override
	public String intercept(ActionInvocation invocation) throws Exception {
		logger.debug("----- intercepter 3 start -----");
		String result = invocation.invoke();
		logger.debug("----- intercepter 3 end  -----");
		return result;
	}
	
	@Override
	public void destroy() {
		logger.debug("----- intercepter 3  destroy -----");
		super.destroy();
	}

	@Override
	public void init() {
		logger.debug("----- intercepter 3 init -----");
		super.init();
	}
	

}
